#coding=utf-8
class SchoolMember:
	population = 0
	def __init__(self, name):
		self.name = name
		# SchoolMember.population += 1

	#对象方法
	def tell(self):
		print SchoolMember.population

	#类方法
	@classmethod
	def AddSchoolnum(cls, name):
		SchoolMember.population += 1
		print SchoolMember.population

class SchoolMaster(SchoolMember):
	def __init__(self, name):
		SchoolMember.__init__(self, name)

def test():
	a = SchoolMaster('Yang')
	a.AddSchoolnum('Yang')
	# a.tell()

if __name__ == '__main__':
	test()